// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store'
import './mock/mockServer' // 加载mock数据
import FastClick from 'fastclick'
import VueLazyload from 'vue-lazyload'

import '../static/js/lib/layer_mobile/need/layer.css';
import layer from '../static/js/lib/layer_mobile/layer';
Vue.prototype.$layer = layer;
Vue.use(VueLazyload, { // 内部自定义一个指令lazy
  loading: '/static/loading.gif'
});
FastClick.attach(document.body);
Vue.config.productionTip = false;
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
});
